import { prefixUT } from '@/services/paper';
import request from '@/utils/request';
import { prefix } from '@/utils/utils';

const prefixU = prefix('paper');

export async function addPaper(params) {
  return request<prefixUT['add']>(prefixU('add'), {
    method: 'POST',
    data: params,
  });
}

export async function getPaperList(opt) {
  return request<prefixUT['get']>(prefixU('get'), {
    method: 'POST',
    data: opt,
  });
}
export async function delPaper(opt) {
  return request<prefixUT['delete']>(prefixU('delete'), {
    method: 'POST',
    data: opt,
  });
}
export async function getPaperDetail(opt) {
  return request<prefixUT['getDetail']>(prefixU('getDetail'), {
    method: 'POST',
    data: opt,
  });
}
